package com.bdmc.report.mapper;

import com.bdmc.common.annotation.DataColumn;
import com.bdmc.common.annotation.DataPermission;
import com.bdmc.report.domain.ReportCarStop;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdmc.report.domain.bo.ReportCarStopBo;
import com.bdmc.report.domain.vo.ReportCarOilCostVo;
import com.bdmc.report.domain.vo.ReportCarStopVo;
import com.bdmc.common.core.mybatisplus.core.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 怠速时长以及油耗Mapper接口
 *
 * @author bdmc
 * @date 2022-08-09
 */
public interface ReportCarStopMapper extends BaseMapperPlus<ReportCarStop> {

    @DataPermission({@DataColumn(value = "d.dept_id")})
    Page<ReportCarStopVo> mySelectPage(@Param("page") Page<ReportCarStop> page, @Param("param") ReportCarStopBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    List<ReportCarStopVo> mySelectPage(@Param("param") ReportCarStopBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    List<ReportCarOilCostVo> mySelectOilPage(@Param("param") ReportCarStopBo bo);
}
